package com.qinglei.recoup.system.dao;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qinglei.recoup.system.domain.EventLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author syp
 */
public interface EventLogMapper extends BaseMapper<EventLog> {

    @SqlParser(filter=true)
    IPage<EventLog> selectData(@Param("bedIds") Set<Integer> bedIds
//                               @Param("userIds")Set<Integer> userIds,
//                               @Param("startDate")String startDate,
//                               @Param("endDate")String endDate,
//                               @Param("typeBedIds")Set<Integer> typeBedIds,
//                               @Param("typeNurseIds")Set<Integer> typeNurseIds
                               );


    EventLog getLastEvent(Integer id);

}
